package designPatterns;

/**
 * @author Ajie
 * @date 2022/6/9
 * @function 测试多 classloaser 单例
 */
public class SingletonPattern_classloader {
    public static void main(String[] args) {

    }

//    private static Class getClass(String classname) throws ClassNotFoundException {
//
//        ClassLoader classLoader = Thread.currentThread().getContextClassLoader();
//
//
//        if(classLoader == null)
//            classLoader = SingletonPattern_classloader.class.getClassLoader();
//
//        return (classLoader.loadClass(classname));
//
//    }
}
